#include <iostream>

using namespace std;

class Student
{

    //类中的属性和行为，我们统一称为成员
    //属性 成员属性 成员变量
    //行为 成员方法 成员函数

public:
    string m_name;
    int m_id;

    void showStudent()
    {
        cout << "姓名：" << m_name << endl;
        cout << "ID：" << m_id << endl;
    }

    void setname(string name)
    {
        m_name = name;
    }

    void setid(int id)
    {
        m_id = id;
    }
};

int main(void)
{
    Student s1;
    s1.setname("张三");
    s1.m_id = 2021302265;

    s1.showStudent();

    Student s2;
    s2.m_name = "李四";
    s2.m_id = 2021302262;

    s2.showStudent();

    return 0;
}
